<ul id="treeview">
    <?php
    $data = $model->getMenu();
    $this->widget('ArrayToList', array(
        'data'     => $data,
        'parentId' => 0,
        'tag'      => 'div',
    ));
    ?>
</ul>

<script type="text/javascript">
//Menu tree (parent)
$('#treeview').treeview({
    collapsed: false,
    animated: "medium",
    unique: true
});

//show child
$('#treeview .link').click(function(){
    url = '<?php echo $this->createUrl('menu/menuShowChild'); ?>'
        + '/parentId/' + $(this).attr('ref');

    $('#childs').load(url);
});
</script>